package com.example.demo.component.k8s;

public enum k8s_enum {
    MY_VM("192.168.75.129", "C:\\Users\\BG264\\Desktop\\admin.conf");

    public final String host_ip;
    public final String config_path;

    k8s_enum(String host_ip, String config_path) {
        this.host_ip = host_ip;
        this.config_path = config_path;
    }

    public static String get_config_path(String host_ip) {
        k8s_enum[] k8s_enums = values();
        for (k8s_enum k8s_enum : k8s_enums) {
            if (k8s_enum.host_ip.equals(host_ip)) {
                return k8s_enum.config_path;
            }
        }
        return null;
    }
}
